package com.wing.productionPlan.model.response;

import com.wing.productionPlan.model.entity.ProductionPieceRateDetail;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import java.util.List;

/**
 * 计件工资单VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class ProductionPieceRateVO {

    List<ProductionPieceRateDetailVO> pieceRateDetailList;

    /**
     * ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;

    /**
     * day
     */
    private Integer day;

    /**
     * no
     */
    private Integer no;

    /**
     * 企业编号
     */
    private String enterpriseCode;

    /**
     * 计件工资单编号
     */
    private String code;

    /**
     * 所属月份
     */
    private Integer month;

    /**
     * 报工单数
     */
    private Integer workQuantity;

    /**
     * 合格工资
     */
    private BigDecimal qualifiedSalary;

    /**
     * 不合格工资
     */
    private BigDecimal unqualifiedSalary;

    /**
     * 报废罚款
     */
    private BigDecimal scrapPenalty;

    /**
     * 计件金额
     */
    private BigDecimal pieceRateAmount;

    /**
     * 0 待确认;1 已确认;2 待结算;3 已结算
     */
    private Integer status;

    /**
     * 员工确认时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime empConfirmTime;

    /**
     * 财务确认时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime financeConfirmTime;

    /**
     * 结算时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime settlementTime;

    /**
     * 报工人id
     */
    private Long theWorkOrderPeople;

    /**
     * 报工人
     */
    private String theWorkOrderPeopleName;
}
